import { Scene, Engine } from '@babylonjs/core'
export class BabylonScene {
  scene: Scene
  engine: Engine
  constructor(private canvas: HTMLCanvasElement) {
    this.engine = new Engine(this.canvas, true)
    this.scene = this.CreateScene()
    this.engine.runRenderLoop(() => {
      this.scene.render()
    })
  }
  CreateScene(): Scene {
    const scene = new Scene(this.engine)
    return scene
  }
}
